package com.pentakill.mo.auth.res.business.ebo;

import java.io.Serializable;
import java.util.List;

import com.pentakill.mo.auth.res.business.ebi.ResEbi;
import com.pentakill.mo.auth.res.dao.dao.ResDao;
import com.pentakill.mo.auth.res.vo.ResModel;
import com.pentakill.mo.util.base.BaseQueryModel;

public class ResEbo implements ResEbi {
	
	private ResDao resDao;
	
	
	public void setResDao(ResDao resDao) {
		this.resDao = resDao;
	}


	public void save(ResModel t) {
		resDao.add(t);
	}


	public List<ResModel> getAll() {
		return resDao.getAll();
	}


	public ResModel get(Serializable uuid) {
		resDao.get(uuid);
		return null;
	}


	public void update(ResModel t) {
		resDao.update(t);
	}


	public void delete(ResModel t) {
		resDao.delete(t);
	}


	public List<ResModel> getAll(BaseQueryModel dqm, Integer pageNum, Integer pageCount) {
		return resDao.getAll(dqm, pageNum, pageCount);
	}


	public Integer getCount(BaseQueryModel dqm) {
		return resDao.getCount(dqm);
	}


	public List<ResModel> getAllByEmp(Long uuid) {
		return resDao.getAllByEmpUuid(uuid);
	}

}
